import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 引入vant
import Vant from 'vant'
import 'vant/lib/index.css'
import 'lib-flexible'
import './assets/css/reset.css'
import 'animate.css'
Vue.use(Vant)

Vue.config.productionTip = false

//尝试提取本地信息并存入到状态机里去
let uinfo = localStorage.getItem('userInfo')
console.log(uinfo)
if (uinfo) {
    store.commit('user/initUserInfoMut', JSON.parse(uinfo))
}

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')